import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import helper from "./util/helper.js";
import api from 'api/request.js'
import global_function from './common/global_function.js'
import print from './util/print.js'
import store from 'store/index.js'
import uploadFn from 'util/upload.js'
import message from './util/msgInfo.js'
import LiSwitch from './components/li-switch/li-switch';
import permissions from './util/permissions.js'

Vue.component("li-switch", LiSwitch)
Vue.use(global_function)
Vue.use(print)

Vue.prototype.$api = api
Vue.prototype.$store = store
Vue.prototype.$helper = helper
Vue.prototype.$message = message
Vue.prototype.$uploadFn = uploadFn
Vue.prototype.$permissions = permissions;


Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif